DEBUG = True
CSRF_ENABLED = True
SECRET_KEY = 'APP_SECRET_KEY_HERE'

# 数据库参数设置 运行前需修改 
# 连接MySQL的用户名
USERNAME = "username"
# 连接MySQL的密码
PASSWORD = "password"
# 本地数据库名称
DATABASE = "database"
SQLALCHEMY_DATABASE_URI = f'mysql://{USERNAME}:{PASSWORD}@127.0.0.1:3306/{DATABASE}'
SQLALCHEMY_TRACK_MODIFICATIONS = True

# 验证码发送邮箱配置
MAIL_SERVER = "smtp.qq.com"
MAIL_USE_SSL = True
MAIL_PORT = 465
MAIL_USERNAME = "muttonbuns@qq.com"
MAIL_PASSWORD = "hxwgvgtroyvecjhd"
MAIL_DEFAULT_SENDER = "muttonbuns@qq.com"

import os

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
storage_path = os.path.join(BASE_DIR, 'uploads/')

# 如果 uploads 文件夹不存在，则自动创建
os.makedirs(storage_path, exist_ok=True)